<template>
  <div class="common-layout">
    <el-container>
      <el-header style="display: flex;flex-direction: row;">
        <div style="width: 100%;">
          <el-menu router>
          <el-sub-menu index="1">
            <template #title>
            <el-icon><location /></el-icon>
            <span style="color: black;font-family:楷体;font-size: 20px;">美食列表</span>
          </template >
          <div style="display: flex;flex-direction: row;">
            <el-menu-item index="/kfc" style="background-color:white;font-family:楷体;font-size: 20px;">全部</el-menu-item>
            <el-menu-item index="/taocan" style="background-color:white ;font-family:楷体;font-size: 20px;">套餐</el-menu-item>
            <el-menu-item index="/lenyin" style="background-color:white ;font-family:楷体;font-size: 20px;">冷饮</el-menu-item>
            <el-menu-item index="/shutiao" style="background-color:white ;font-family:楷体;font-size: 20px;">薯条</el-menu-item>
            <el-menu-item index="/hanbao" style="background-color:white ;font-family:楷体;font-size: 20px;">汉堡</el-menu-item>
            <el-menu-item index="/gouwuche" ><el-icon><ShoppingCartFull /></el-icon></el-menu-item>
          </div>
          </el-sub-menu>
        </el-menu>
        </div>
      </el-header>
      <el-main>
        <RouterView />
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import {ShoppingCartFull} from "@element-plus/icons-vue"
import { ref } from "vue";

</script>


